﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FarmerOrders.aspx.cs" Inherits="NJL.WebUsers.AdminVisitor.FarmerOrders" %>

<%@ Register Src="../Controls/WUCUservisitorLeft.ascx" TagName="WUCUservisitorLeft"
    TagPrefix="uc3" %>
<%@ Import Namespace="Royalsoft.Common" %>
<%@ Register Src="../Controls/UCenterHeader.ascx" TagName="UCenterHeader" TagPrefix="uc4" %>
<%@ Register Src="../Controls/UcenterFooter.ascx" TagName="UcenterFooter" TagPrefix="uc5" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>我的订单</title>
    <script type="text/javascript" src="/ckeditor/ckeditor.js"></script>
    <link href="../Styles/base1.css" rel="stylesheet" type="text/css" />
    <script src="../Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
    <link href="../Styles/manage.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
        function textboxSelect() {
            var checkbox = document.getElementsByName("cbxSingle");
            for (var i = 0; i < checkbox.length; i++) {
                checkbox[i].checked = !checkbox[i].checked;
            }
        }
        function checkCheckboxState() {
            var checkbox = document.getElementsByName("cbxSingle");
            var hiddenId = "";
            var count = 0;
            for (var i = 0; i < checkbox.length; i++) {
                if (checkbox[i].checked == true) {
                    hiddenId += checkbox[i].value + ",";
                    count++;
                }
            }
            if (count == 0) {
                alert('请选择您要删除的记录')
                return false;
            }
            else {
                if (window.confirm("您确定要删除吗？")) {
                    hiddenId = hiddenId.substring(0, hiddenId.length - 1);
                    document.getElementById("<%=HSelectId.ClientID %>").value = hiddenId;
                }
                else {
                    return false;
                }
            }
        }
    </script>
</head>
<body class="managebg">
    <form id="form1" runat="server">
    <uc4:UCenterHeader ID="UCenterHeader1" runat="server" />
    <!--主要内容-->
    <div class="managecont02 cleanFlex">
        <!--右侧内容-->
        <div class="f_right manageRight" id="right">
            <!--位置-->
            <div class="place">
                <span>欢迎您：<%=UserName %>&nbsp;&nbsp;[<a href="/Logout.aspx" class="green">退出登陆</a>]</span>
                <p>
                    您现在的位置是&nbsp;<strong><a href="Default.aspx">用户中心</a></strong>&gt;&gt;<strong>我的订单</strong></p>
            </div>
            <!--基本信息内容-->
            <div class="cleanFlex m_top_10">
            </div>
            <div>
                <!--标题-->
                <div class="">
                    <ul class="titleTabmanage">
                        <li >
                            <p>
                                <a href="Orders.aspx">景点订单</a>
                            </p>
                        </li>
                        <li class="now">
                            <p>
                                <a href="FarmerOrders.aspx">农家乐和度假山庄订单</a>
                            </p>
                        </li>
                        <%--                       <li><p><a href="#">参加过的活动</a></p></li>
                            <li><p><a href="#">感兴趣的活动</a></p></li>--%>
                    </ul>
                </div>
                <div class="cont">
                    <table class="tabBord m_top_10" cellpadding="0" cellspacing="0" width="100%">
                        <thead>
                            <tr>
                                <th width="160">
                                    编号
                                </th>
                                <th width="100">
                                    取票人姓名
                                </th>
                                <th width="100">
                                    取票人手机
                                </th>
                                <th width="150">
                                    下单时间
                                </th>
                                <th width="89">
                                    订单状态
                                </th>
                                <th width="89">
                                    操作
                                </th>
                            </tr>
                        </thead>
                        <tbody>
                            <asp:Repeater runat="server" ID="rptContent" OnItemDataBound="rptContent_ItemDataBound"
                                OnItemCommand="rptContent_ItemCommand">
                                <ItemTemplate>
                                    <tr>
                                        <td align="center">
                                            <a href="OrderDetails.aspx?id=<%#Eval("ID") %>">
                                                <%#Eval("ID")%></a>
                                        </td>
                                        <td align="center">
                                            <%#Eval("PICK_NAME")%>
                                        </td>
                                        <td align="center">
                                            <%#Eval("PICK_MOBILE")%>
                                        </td>
                                        <td align="center">
                                            <%#Eval("CREATE_DATE_TIME", "{0:yyyy-MM-dd HH:mm:ss}")%>
                                        </td>
                                        <td align="center">
                                            <asp:Literal ID="litOrderState" runat="server"></asp:Literal>
                                            <asp:HyperLink ID="hplinkOrder" runat="server" Visible="false">预订</asp:HyperLink>
                                        </td>
                                        <td align="center">
                                            <asp:LinkButton ID="lbtnDel" runat="server" CommandName="Del" class="grayBtn" CommandArgument='<%#Eval("ID") %>'
                                                OnClientClick="return confirm('您确定要删除吗？')">删除</asp:LinkButton>
                                        </td>
                                    </tr>
                                </ItemTemplate>
                            </asp:Repeater>
                        </tbody>
                        <tfoot>
                            <tr>
                                <td colspan="6" class="bottom">
                                    <div class="page cleanFlex m_top_10">
                                        共
                                        <asp:Literal ID="lit" runat="server"></asp:Literal>
                                        条记录&nbsp;&nbsp;&nbsp;&nbsp; 共
                                        <asp:Literal ID="litAllPage" runat="server"></asp:Literal>
                                        页&nbsp;&nbsp;&nbsp;&nbsp; 第
                                        <asp:Literal ID="litCurrentPage" runat="server"></asp:Literal>
                                        页
                                        <asp:LinkButton ID="lbtnFirst" runat="server" OnClick="lbtnFirst_Click">首页</asp:LinkButton>&nbsp;
                                        <asp:LinkButton ID="lbtnPrev" runat="server" OnClick="lbtnPrev_Click">上一页</asp:LinkButton>&nbsp;
                                        <asp:LinkButton ID="lbtnNext" runat="server" OnClick="lbtnNext_Click">下一页</asp:LinkButton>&nbsp;
                                        <asp:LinkButton ID="lbtnEnd" runat="server" OnClick="lbtnEnd_Click">末页</asp:LinkButton>
                                        跳转到第
                                        <asp:TextBox ID="txtPage" runat="server" Width="32px" MaxLength="8" Style="text-align: center"
                                            CssClass="input"></asp:TextBox>&nbsp;页&nbsp;
                                        <asp:Button ID="btnRir" runat="server" Text="确定" OnClick="btnRir_Click" CssClass="greenBtn"
                                            onmouseover="this.className='greenBtnOver'" onmouseout="this.className='greenBtn'" />
                                    </div>
                                </td>
                            </tr>
                        </tfoot>
                    </table>
                </div>
                <!--我的游记-->
                <div>
                </div>
            </div>
        </div>
        <!--左侧菜单-->
        <uc3:WUCUservisitorLeft ID="WUCUservisitorLeft1" runat="server" />
        <div class="managecontbottom">
        </div>
    </div>
    <asp:HiddenField ID="HSelectId" runat="server" />
    <uc5:UcenterFooter ID="UcenterFooter1" runat="server" />
    </form>
</body>
</html>
